/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.flowable.CheckCycle.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.modules.sys.entity.User;
import lombok.Data;

import java.util.Date;

/**
 * 点检异常流程表单Entity
 * @author 刘明星
 * @version 2020-11-08
 */
@Data
public class CheckStandardAbnormalCycle extends DataEntity<CheckStandardAbnormalCycle> {

	private static final long serialVersionUID = 1L;
	@ExcelField(title="设备编码", align=2, sort=1)
	private String abnormalCode;		// 设备编码
	@ExcelField(title="厂", align=2, sort=2)
	private String factory;		// 厂
	@ExcelField(title="异常区域", align=2, sort=3)
	private String abnormalArea;		// 异常区域
	@ExcelField(title="异常设备", align=2, sort=4)
	private String abnormalObject;		// 异常设备
	@ExcelField(title="异常信息", align=2, sort=5)
	private String abnormalMessgae;		// 异常信息
	@ExcelField(title="异常级别", dictType="check_abnormal_level", align=2, sort=6)
	private String abnormalLevel;		// 异常级别
	@ExcelField(title="第一责任人", fieldType=User.class, value="firstUser.name", align=2, sort=7)
	private User firstUser;		// 第一责任人
	@ExcelField(title="工号", align=2, sort=8)
	private String userid;		// 工号
	@ExcelField(title="检修负责人员", fieldType=User.class, value="overhaulPeople.name", align=2, sort=9)
	private User overhaulPeople;		// 检修负责人员
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="完成时间", align=2, sort=10)
	private Date finishTime;		// 完成时间
	@ExcelField(title="流程实例id", align=2, sort=17)
	private String procInsId;		// 流程实例id

	public CheckStandardAbnormalCycle() {
		super();
	}

	public CheckStandardAbnormalCycle(String id){
		super(id);
	}
}